package com.llkj.common.observer;

import com.llkj.common.exception.ApiException;


/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/4/20
 * desc  :
 */
public abstract class BaseObserver<T> extends BaseSubscriber<T> implements ICallback<T> {

    @Override
    protected void onError(ApiException e) {
        doOnError(e);
    }

    @Override
    public void onNext(T t) {
        doOnNext(t);
    }

    @Override
    public void onComplete() {
        doOnCompleted();
    }

    @Override
    protected void onStart() {
        doOnStart();
    }
}
